<div id="mainContent" class="omega grid_13">
<h1>Galéria</h1>

<script src="<?php echo base_url()?>admin_style/elfinder/elfinder.min.js" type="text/javascript" charset="utf-8"></script>
<script src="<?php echo base_url()?>admin_style/elfinder/elfinder.hu.js" type="text/javascript" charset="utf-8"></script>
<link rel="stylesheet" href="<?php echo base_url()?>admin_style/elfinder/elfinder.css" type="text/css" media="screen" title="no title" >

<div id="finder">finder</div>


<script type="text/javascript" charset="utf-8">

    $(document).ready(function() {  
    	var f = $('#finder').elfinder({
			url : '<?php echo site_url('admin/gallery/connect')?>',
			lang : 'hu',
			//docked : true,
			places : ''
		});
		// window.console.log(f)
		$('#close,#open,#dock,#undock').click(function() {
			$('#finder').elfinder($(this).attr('id'));
		});

		$('#close,#open,#dock,#undock').click(function() {
			$('#finder').elfinder($(this).attr('id'));
		});
        
  	});
</script>

</div>